package com.exam.service;

import com.exam.po.Announcement;
import com.exam.po.Teacher;
import com.exam.ustudent.UStudent;

import java.util.List;

/**
 * @author zhanghui
 * @ClassName TeacherService
 * @Description TODO
 * @Date 2021/1/11 20:39
 * @Version 1.0
 **/
public interface TeacherService {
    /**
     * @Author zhanghui
     * @Description 根据老师id分页查询学生
     * @Date 2021/1/12 9:51
     * @Param [teacherId, page, size]
     * @return java.util.List<com.exam.po.Student>
     **/
    public List<UStudent> findStudentByCourse(Integer teacherId, Integer page, Integer size);

    public int findCountStudents(Integer teacherId);
   /**
    * @Author zhanghui
    * @Description 查询公告
    * @Date 2021/1/12 9:52
    * @Param [page, size]
    * @return java.util.List<com.exam.po.Announcement>
    **/
    List<Announcement> findAnnouncements();
    /*
     * @Author mahaoqi
     * @Description 添加教师
     * @Date 2021/1/11 18:51
     * @Param [teacher]
     * @return boolean
     **/
    public boolean addTeacher(Teacher teacher);

    /*
     * @Author mahaoqi
     * @Description 根据id删除教师
     * @Date 2021/1/11 19:06
     * @Param [tid]
     * @return boolean
     **/
    public boolean removeTeacher(Integer teacherid);

    /*
     * @Author mahaoqi
     * @Description 修改教师
     * @Date 2021/1/11 19:11
     * @Param [teacher]
     * @return java.lang.boolean
     **/
    public boolean modifyTeacher(Teacher teacher);

    /*
     * @Author mahaoqi
     * @Description 分页查询
     * @Date 2021/1/11 19:23
     * @Param [page, pageSize]
     * @return java.util.List<com.exam.po.Teacher>
     **/
    public List<Teacher> findList(Integer page,Integer pageSize);

    /*
     * @Author mahaoqi
     * @Description 查找记录数
     * @Date 2021/1/11 19:45
     * @Param []
     * @return int
     **/
    public int findCount();
}
